package com.googlecode.axolotl.prevayler;

import java.util.Date;
import java.util.Map;


public class InsertTransaction implements org.prevayler.Transaction {

	private Object id;
	private Object entity;

	public InsertTransaction() {
	}
	
	public InsertTransaction(Object id, Object entity) {
		this.id = id;
		this.entity = entity;
	}
	
	public void executeOn(Object database, Date arg1) {
		((Map) database).put(id, entity);
	}

}
